<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib uri="http://java.sun.com/jstl/core"			  prefix="c"%>
  <pg:param name="keywords"/>
  <pg:param name="style"/>
  <pg:param name="position"/>
  <pg:param name="maxPageItems"/>
  <ex:searchresults>
    <pg:item>
    ${ searchResult }
    </pg:item>
  </ex:searchresults>
  

  <pg:index>
  
    <div class="pagination"> 
    <pg:first>
     <a href="${pageUrl }" title="首页">首页</a>
     </pg:first>
     <pg:prev>
     <a href="${pageUrl }" title="上一页">上一页</a> 
     </pg:prev>
     <pg:pages>  
        <c:choose>  
            <c:when test="${currentPageNumber eq pageNumber}">  
               <a href="${pageUrl }" class="number current" title="${pageNumber }">${pageNumber }</a> 
            </c:when>  
            <c:otherwise>  
            	<a href="${pageUrl }" class="number" title="${pageNumber }">${pageNumber }</a> 
            </c:otherwise>  
        </c:choose>  
    </pg:pages> 
    <pg:next>
     <a href="${pageUrl }" title="下一页">下一页</a>
     </pg:next>
      <pg:last>
     <a href="${pageUrl }" title="末页">末页 </a> 
     </pg:last>
     <a href="javascript:;" title="总数">总记录数：${page.total} </a> 
     
    </div>

  </pg:index>
